package com.egao.common.module.cooperative.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.egao.common.core.web.PageParam;
import com.egao.common.module.cooperative.entity.CooperativeProjectRecord;
import com.egao.common.module.cooperative.entity.vo.CooperativeProjectRecordListVO;
import com.egao.common.module.cooperative.mapper.CooperativeProjectRecordMapper;
import com.egao.common.module.cooperative.service.CooperativeProjectRecordService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 产教融合项目记录接口实现
 * @author root
 */
@Service
public class CooperativeProjectRecordServiceImpl
        extends ServiceImpl<CooperativeProjectRecordMapper, CooperativeProjectRecord> implements CooperativeProjectRecordService {

    @Override
    public void add(CooperativeProjectRecord cooperativeProjectRecord) {
        baseMapper.insert(cooperativeProjectRecord);
    }

    @Override
    public List<CooperativeProjectRecordListVO> listPage(PageParam<CooperativeProjectRecord> page) {
        return baseMapper.listPage(page);
    }
}
